package com.jy.framework.base.utils;

import com.alibaba.fastjson.JSON;

public class Serializer {

    public static String serialize(Object obj) {
        return JSON.toJSONString(obj);
    }

    public static <T> T deserialize(String text, Class<T> clazz) {
        return JSON.parseObject(text, clazz);
    }
}
